package com.ruoyi.system.domain.bo;

import com.ruoyi.common.core.domain.BaseEntity;
import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 图片文件保存业务对象 t_file_info
 *
 * @author ruoyi
 * @date 2023-08-11
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class TFileInfoBo extends BaseEntity {

    /**
     * 文件表id
     */
    @NotNull(message = "文件表id不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 业务信息ID
     */
    @NotNull(message = "业务信息ID不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long busiId;

    /**
     * 所属业务
     */
    @NotBlank(message = "所属业务不能为空", groups = { AddGroup.class, EditGroup.class })
    private String busiType;

    /**
     * 文件url
     */
    @NotBlank(message = "文件url不能为空", groups = { AddGroup.class, EditGroup.class })
    private String url;

    /**
     * 文件名称
     */
    @NotBlank(message = "文件名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String name;

    /**
     * 文件格式
     */
    @NotBlank(message = "文件格式不能为空", groups = { AddGroup.class, EditGroup.class })
    private String fileFormat;

    /**
     * 文件类型(1：图片 2：视频 3:文件)
     */
    @NotBlank(message = "文件类型(1：图片 2：视频 3:文件)不能为空", groups = { AddGroup.class, EditGroup.class })
    private String fileType;

    /**
     * 创建者id
     */
    @NotNull(message = "创建者id不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long createId;

    /**
     * 状态
     */
    @NotBlank(message = "状态不能为空", groups = { AddGroup.class, EditGroup.class })
    private String status;

    /**
     * 备注
     */
    @NotBlank(message = "备注不能为空", groups = { AddGroup.class, EditGroup.class })
    private String remark;


}
